import {Type} from '@angular/core';

export interface DynamicComponentEvent {
  [key: string]: Function;
}

export interface DynamicComponent {
  dynamic: true;
  data?: any;
  events?: DynamicComponentEvent;
  context?: any;
}

export interface DynamicComponentOptions {
  component: Type<DynamicComponent>;
  data?: any;
  events?: DynamicComponentEvent;
}
